package Dict;

/**
 * Interface definition: Word.
 * 
 * @author OpenORB Compiler
 */
public class _WordStub extends org.omg.CORBA.portable.ObjectImpl
        implements Word
{
    static final String[] _ids_list =
    {
        "IDL:Dict/Word:1.0"
    };

    public String[] _ids()
    {
     return _ids_list;
    }

    private final static Class _opsClass = Dict.WordOperations.class;

    /**
     * Operation myTerm
     */
    public String myTerm()
    {
        while(true)
        {
            if (!this._is_local())
            {
                org.omg.CORBA.portable.InputStream _input = null;
                try
                {
                    org.omg.CORBA.portable.OutputStream _output = this._request("myTerm",true);
                    _input = this._invoke(_output);
                    String _arg_ret = _input.read_string();
                    return _arg_ret;
                }
                catch(org.omg.CORBA.portable.RemarshalException _exception)
                {
                    continue;
                }
                catch(org.omg.CORBA.portable.ApplicationException _exception)
                {
                    String _exception_id = _exception.getId();
                    throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: "+ _exception_id);
                }
                finally
                {
                    this._releaseReply(_input);
                }
            }
            else
            {
                org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("myTerm",_opsClass);
                if (_so == null)
                   continue;
                Dict.WordOperations _self = (Dict.WordOperations) _so.servant;
                try
                {
                    return _self.myTerm();
                }
                finally
                {
                    _servant_postinvoke(_so);
                }
            }
        }
    }

    /**
     * Operation myCategory
     */
    public Dict.CategoryValue myCategory()
    {
        while(true)
        {
            if (!this._is_local())
            {
                org.omg.CORBA.portable.InputStream _input = null;
                try
                {
                    org.omg.CORBA.portable.OutputStream _output = this._request("myCategory",true);
                    _input = this._invoke(_output);
                    Dict.CategoryValue _arg_ret = Dict.CategoryValueHelper.read(_input);
                    return _arg_ret;
                }
                catch(org.omg.CORBA.portable.RemarshalException _exception)
                {
                    continue;
                }
                catch(org.omg.CORBA.portable.ApplicationException _exception)
                {
                    String _exception_id = _exception.getId();
                    throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: "+ _exception_id);
                }
                finally
                {
                    this._releaseReply(_input);
                }
            }
            else
            {
                org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("myCategory",_opsClass);
                if (_so == null)
                   continue;
                Dict.WordOperations _self = (Dict.WordOperations) _so.servant;
                try
                {
                    return _self.myCategory();
                }
                finally
                {
                    _servant_postinvoke(_so);
                }
            }
        }
    }

    /**
     * Operation myProperties
     */
    public Dict.PropertyType myProperties()
    {
        while(true)
        {
            if (!this._is_local())
            {
                org.omg.CORBA.portable.InputStream _input = null;
                try
                {
                    org.omg.CORBA.portable.OutputStream _output = this._request("myProperties",true);
                    _input = this._invoke(_output);
                    Dict.PropertyType _arg_ret = Dict.PropertyTypeHelper.read(_input);
                    return _arg_ret;
                }
                catch(org.omg.CORBA.portable.RemarshalException _exception)
                {
                    continue;
                }
                catch(org.omg.CORBA.portable.ApplicationException _exception)
                {
                    String _exception_id = _exception.getId();
                    throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: "+ _exception_id);
                }
                finally
                {
                    this._releaseReply(_input);
                }
            }
            else
            {
                org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("myProperties",_opsClass);
                if (_so == null)
                   continue;
                Dict.WordOperations _self = (Dict.WordOperations) _so.servant;
                try
                {
                    return _self.myProperties();
                }
                finally
                {
                    _servant_postinvoke(_so);
                }
            }
        }
    }

    /**
     * Operation toFile
     */
    public String toFile()
    {
        while(true)
        {
            if (!this._is_local())
            {
                org.omg.CORBA.portable.InputStream _input = null;
                try
                {
                    org.omg.CORBA.portable.OutputStream _output = this._request("toFile",true);
                    _input = this._invoke(_output);
                    String _arg_ret = _input.read_string();
                    return _arg_ret;
                }
                catch(org.omg.CORBA.portable.RemarshalException _exception)
                {
                    continue;
                }
                catch(org.omg.CORBA.portable.ApplicationException _exception)
                {
                    String _exception_id = _exception.getId();
                    throw new org.omg.CORBA.UNKNOWN("Unexpected User Exception: "+ _exception_id);
                }
                finally
                {
                    this._releaseReply(_input);
                }
            }
            else
            {
                org.omg.CORBA.portable.ServantObject _so = _servant_preinvoke("toFile",_opsClass);
                if (_so == null)
                   continue;
                Dict.WordOperations _self = (Dict.WordOperations) _so.servant;
                try
                {
                    return _self.toFile();
                }
                finally
                {
                    _servant_postinvoke(_so);
                }
            }
        }
    }

}
